package com.ajie.controller;


import com.ajie.service.LookLikeFavouriteService;
import com.ajie.utils.QueryInfo;
import com.ajie.utils.Result;
import com.ajie.vo.LookLikeFavouriteVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "浏览点赞收藏")
@RequestMapping("/looklikefavourite")
@Slf4j
public class LookLikeFavouriteController {
    @Autowired
    private LookLikeFavouriteService lookLikeFavouriteService;
    
    @ApiOperation(value = "浏览点赞收藏添加修改删除")
    @PostMapping("/addLookLikeFavouriteNum")
    public Result addLookLikeFavouriteNum(@RequestBody LookLikeFavouriteVo lookLikeFavouriteVo){
        log.info("controller的数据=>{}",lookLikeFavouriteVo);
        return Result.success("访问量增加成功！");
    }
    
    @ApiOperation(value = "收藏夹和浏览记录查找")
    @PostMapping("/findPageByNewMomentCourse")
    public Result findPageByNewMomentCourse(@RequestBody QueryInfo queryInfo){
        log.info("该文件名是：MomentController,该方法是：findPageByNewMomentCourse");
        return lookLikeFavouriteService.findPageByNewMomentCourse(queryInfo);
    }
    
}
